<template>
    <div style="background-color: chartreuse;">
        <button @click="show=true">111</button>
        <p v-show="show">111 : {{ toSon }}</p>
        <p v-show="show">222
        <button @click="handle()">222</button>
        </p>
        <button @click="show1=true">ajajaja</button>
        <p v-show="show1"><span :style="{fontSize:getWidth}">afdsafdsf</span></p>
        8888:{{ Msg }}
    </div>
</template>
<script>
export default {
    props:['toSon','wid'],
    data() {
        return {
            show:false,
            score:85,
            show1:false,
            Msg:''
        }
    },
    methods: {
        handle(){
            this.$emit('score',this.score)
        },
        receiveMsg(val){
            this.Msg = val
        }
    },
    computed:{
        getWidth(){
            return this.wid+'px'
        }
    }
}
</script>